/*
 * @Author: Aster lipian1004@163.com
 * @Date: 2023-08-01 17:58:15
 * @FilePath: \aster-admin\src\api\index.ts
 * @Description: 公共API
 * Copyright (c) 2024 by Aster, All Rights Reserved.
 */
import request from '@/config/axios';
import { PORT1 } from './config';

// 图片上传
export const uploadImg = (params: FormData) => {
  return request.post<Upload.ResFileUrl>(PORT1 + `/file/upload/img`, params);
};

// 视频上传
export const uploadVideo = (params: FormData) => {
  return request.post<Upload.ResFileUrl>(PORT1 + `/file/upload/video`, params);
};
